package glossos.tree.factory;

import glossos.tree.Node;

public abstract class AbstractNodeFactory implements NodeFactory {

	public Node create() {
		return create("");
	}

	public Node create(String word) {
		return create(word, 0);
	}

	public abstract Node create(String word, Integer frequency);

	public Node[] createArray(int size) {
		Node[] nodes = new Node[size];
		for (Node node : nodes) {
			node = create();
		}
		return nodes;
	}

}
